package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class GoodsData implements Serializable{

    /**
     *
     *商品id
     */
    private Integer id;

    /**
     *
     *商店id
     */
    @NotNull
    private Integer storeId;

    /**
     *
     *商品名称
     */
    @NotNull
    private String goodsName;

    /**
     *
     *商品价格
     */
    @NotNull
    private Float goodsPrice;

    /**
     *
     *商品分类
     */
    @NotNull
    private String goodsKind;

    /**
     *
     *商品款式
     */
    @NotNull
    private String goodsStyle;

    /**
     *
     *交易次数
     */
    @NotNull
    private Integer buyNumber;

    /**
     *
     *图片路径
     */
    @NotNull
    private String photoUrl;

    /**
     *
     *收藏人数
     */
    @NotNull
    private Integer properNumber;

    /**
     *
     *富文本
     */
    @NotNull
    private byte[] html;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public Float getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Float goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsKind() {
        return goodsKind;
    }

    public void setGoodsKind(String goodsKind) {
        this.goodsKind = goodsKind == null ? null : goodsKind.trim();
    }

    public String getGoodsStyle() {
        return goodsStyle;
    }

    public void setGoodsStyle(String goodsStyle) {
        this.goodsStyle = goodsStyle == null ? null : goodsStyle.trim();
    }

    public Integer getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(Integer buyNumber) {
        this.buyNumber = buyNumber;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl == null ? null : photoUrl.trim();
    }

    public Integer getProperNumber() {
        return properNumber;
    }

    public void setProperNumber(Integer properNumber) {
        this.properNumber = properNumber;
    }

    public byte[] getHtml() {
        return html;
    }

    public void setHtml(byte[] html) {
        this.html = html;
    }
}